package com.workoutdiary.controller;

import com.swing.trial.FormListener;
import com.workoutdiary.entities.User;

public class MainController implements FormListener{
	private static MainController controller;
	
	private User currentUser;
	
	private MainController() {
		
	}
	
	public static MainController getController() {
		if(controller == null) {
			controller = new MainController();
		}
		return controller;
	}

	@Override
	public void loggedIn(User user) {
		this.currentUser = user;
	}
	
	public User getCurrentUser() {
		return currentUser;
	}
	
}
